package com.agp.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class User implements Serializable {

    private Long id;

    private String phone;

    private String password;

    //0：禁用，1：正常 2：锁定
    @ApiModelProperty(value = "用户状态", example = "1：正常",position = 4)
    private Integer status;

    //1：普通用户，2：管理员 3：专家

    private Integer role;

    //0：未知，1：男，2：女
    private Integer gender;


    private String nickname;


    private String avatar;


    private LocalDateTime createTime;


    private Integer totalPoints;
}
